Summary

Inserts the content of a querystring element into a web page. The content of the query string is Html encoded before written out.

Component properties
Category AS Miscellaneous
Version
Complies with Xhtml 1.0 / 1.1 rules Yes
Supported server programming languages C# Visual Basic.NET
Output content type Unspecified or not applicable

When to use

This component is typically used when a developer need to write out the content of a query string element submitted to the page.

Programming interface

Parameters

QueryString
Specifes the name of the query string element

Remarks

As an alternative a developer can easily write out the content of a passed in query string (in this example MyQuerystring) with the following block of code.

Response.Write(Server.HtmlEncode(Request.QueryString["MyQuerystring"])); 
Response.Write(Server.HtmlEncode(Request.QueryString("MyQuerystring"))) 

However there are some advantages with this component apposed to the code method:

  • Normal users which have no permission to write code can use it.